package com.example.service.impl;

import com.example.domain.Mainzone;
import com.example.mapper.MainzoneMapper;
import com.example.service.MainzoneService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MainzoneServiceImpl implements MainzoneService {

    @Autowired
    private MainzoneMapper mainzoneMapper;

    @Override
    public List<Mainzone> getAll() {
        return mainzoneMapper.getAll();
    }

    @Override
    public Mainzone getById(Integer mainzoneId) {
        return mainzoneMapper.getById(mainzoneId);
    }

    @Override
    public boolean add(Mainzone mainzone) {
        return mainzoneMapper.add(mainzone);
    }

    @Override
    public boolean update(Mainzone mainzone) {
        return mainzoneMapper.update(mainzone);
    }

    @Override
    public boolean delete(Integer mainzoneId) {
        return mainzoneMapper.delete(mainzoneId);
    }

}
